package com.xiyoukt.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class JSPController {

    @GetMapping("testJsp")
    public String testJsp(HttpServletRequest request){
        request.setAttribute("text", "hello too");
        return "index";
    }

}
